import Vue from 'vue'
import router from './router'
import store from './store'
import App from './App.vue'

import _ from 'lodash'
Vue.prototype._ = _

import audio from 'vue-mobile-audio'
Vue.use(audio)

import echarts from 'echarts'
Vue.prototype.$echarts = echarts

import Vant from 'vant'
import { ImagePreview } from 'vant'
import 'vant/lib/index.css'
Vue.use(Vant).use(ImagePreview)
Vue.prototype.$ImagePreview = ImagePreview

import MyNavBar from '@com/MyNavBar' // 导入自己写的组件文件
Vue.use(MyNavBar)
Vue.component('MyNavBar', MyNavBar)
//引入dsbridge
import Bridge from './api/dsbridge.js'
Vue.prototype.$bridge = Bridge

import 'swiper/css/swiper.css'
// import Vconsole from 'vconsole'
// const vConsole = new Vconsole()
// Vue.use(vConsole)

import ButtonAuth from './common/buttonAuth.js'
Vue.prototype.$buttonAuth = ButtonAuth

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
